import request from '@/utils/request';

// 申报明细表
// 列表接口
export async function getComList(params) {
  return request(`/mgrApi/baseApi/baseUser/queryCorpList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getAreaList(params) {
  return request(`/mgrApi/suppBusiScope/getAreaList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getDictList(params) {
  return request(`/mgrApi/mdm/nmDict/queryDictItemsByCodes`, {
    method: 'POST',
    body: [...params],
  });
}

export async function getDetailInfo(params) {
  return request(`/mgrApi/operParam/get`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function insertParam(params) {
  return request(`/mgrApi/operParam/insert`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 分页查询运行补缴政策
export async function getMkupPayPlcyList(params) {
  return request(`/mgrApi/operMkupPayPlcy/pageListOperMkupPayPlcy`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 新增运行补缴政策
export async function saveMkupPayPlcy(params) {
  return request(`/osApi/operMkupPayPlcy/addOperMkupPayPlcy`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改运行补缴政策
export async function updateMkupPayPlcy(params) {
  return request(`/osApi/operMkupPayPlcy/updateOperMkupPayPlcy`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 删除运行补缴政策
export async function deleteMkupPayPlcy(params) {
  return request(`/osApi/operMkupPayPlcy/deleteOperMkupPayPlcy`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getAss(params) {
  return request(`/mgrApi/corpDict/listAssDict`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function getListCorpDict(params) {
  return request(`/mgrApi/corpDict/listCorpDict`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
